package com.ossfk.jt808.client.adapter;

import com.ossfk.jt808.pojo.Jt808Msg;
import com.ossfk.net.client.adapter.AbstractClientAdapter;
import com.ossfk.net.session.TcpSession;

import lombok.extern.slf4j.Slf4j;

@Slf4j
public class Jt808ClientAdapter extends AbstractClientAdapter {

	@Override
	public void handleMessage(TcpSession session,Object msg) {
		if (msg instanceof Jt808Msg) {
			((Jt808Msg) msg).setSession(session);
			log.info("recive message：{}", msg.toString());
		} else {
			log.info("recive unkown message：{}", msg.toString());
		}
	}
	
}
